import { lazy } from "react";

const router = [
    {
        path:"/",
        redirect:"/login",
    },
    {
        path:'/login',
        name:"login",
        meta:{
            title:'八维管理系统'
        },
        component:lazy(() => import("../pages/Login"))
        // component: Login
    },
    {
        path:'/registry',
        name:"registry",
        meta:{
            title:'注册'
        },
        component:lazy(() => import("../pages/Registry"))
        // component: registry
    },
    {
        path:'/home',
        name:"home",
        meta:{
            title:'首页'
        },
        component:lazy(() => import("../pages/Home"))
        // component: home
    }
]

const routerConfig = {
    mode: "history",
    routes: router
}

export default routerConfig;